#!/bin/bash
# iOS编译环境配置

# 设置iOS SDK路径
export DEVELOPER=$(xcode-select -print-path)
export IPHONEOS_SDK_VERSION=$(xcrun -sdk iphoneos --show-sdk-version)
export IPHONEOS_DEPLOYMENT_TARGET="15.0"

# 设置编译平台，这里是mac
HOST_TAG=darwin-x86_64

# 工具链路径
TOOLCHAIN=$DEVELOPER/Toolchains/XcodeDefault.xctoolchain

# 把工具链加到PATH环境变量
PATH=$TOOLCHAIN/usr/bin:$PATH

# 输出目录，在build目录下
BUILD_DIR=$PWD/build

# iOS架构 - 只保留arm64和x86_64
IOS_ARCHS=("arm64" "x86_64")